export interface BaseResultType {
  code: number
  message: string
  data: any
}

// 响应接口
export interface GetMyCharListRes {
  /* */
  code: number

  /* */
  message: string

  /* */
  data: ChatListType[]
}

export interface ChatListType {
  /* */
  id: number

  /* */
  jobInfoVo: {
    /*职位ID */
    jobId: number

    /* */
    companyId: number

    /* */
    companyName: string

    /* */
    companyLogo: string

    /* */
    minSalary: number

    /* */
    maxSalary: number

    /* */
    jeduction: number

    /* */
    jexperience: number

    /* */
    jlocation: string

    /* */
    jtagName: string

    /* */
    jname: string

    /* */
    jstatus: number

    /* */
    jtype: number
  }

  /* */
  targetAvatar: string

  /* */
  targetName: string

  /* */
  targetUsername: string

  /* */
  targetJob: string

  /* */
  recentMessage: string

  resumeId: number

  /* */
  lastTime: string
}

// 参数接口
export interface AddCharListParams {
  /* */
  jobId?: number

  /* */
  resumeId?: number

  /* */
  recipientObject?: number
}

// 参数接口
export interface AddChatMessageParams {
  /*职位Id */
  jobId: number

  /*简历Id */
  resumeId: number

  /*接收方用户名 */
  recipientUsername: string

  /*接收方称呼 */
  recipientName: string

  /*接收方头像 */
  recipientAvatar: string

  /*聊天信息 */
  message: string

  type?: number
}

export interface chatMessageBaseType {
  senderUsername: string
  senderAvatar: string
  senderName: string
  recipientUsername: string
  recipientAvatar: string
  recipientName: string
  message: string
  type: number
  createTime: string
}

export interface optionType {
  value: number
  name: string
  children: optionType[]
}
